'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
    async index() {
        const { ctx } = this;
        await ctx.model.User.create({ userName: "zll", password: "123" });
        res = await ctx.model.User.find();
        console.log(res);
        ctx.body = res
    }
}

module.exports = HomeController;